import { Node, tween } from 'cc';
import { ccchild, ccclass, ccmodifier, HintNetBusy } from '../../../extensions/cc-feather/assets/src';

/**
 * - 作者: DoooReyn
 * - 日期: 2023.11.03
 * - 名称: NetBusyCommon
 * - 描述: 通用网络繁忙提示
 */
@ccclass()
@ccmodifier('NetBusyCommon')
export class NetBusyCommon extends HintNetBusy {
    @ccchild('Icon')
    icon: Node;

    onLoad() {
        // 永远地不停转
        tween(this.icon).by(3, { angle: -360 }).repeatForever().start();
    }
}
